<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/commons/global.jsp" %>
<style>
</style>
<script type="text/javascript">
$(function(){
     var val='${sendDocument.emergencyLevel}';
	   	$.each($('#sendDocView [name=emergencyLevel]'),function(index,item){
	   		if($(this).val()==val){
	   			$(this).attr('checked',true);
	   		}
	   	})
     var val1='${sendDocument.emergencyLevel}';
	   	$.each($('#sendDocView [name=emergencyLevel]'),function(index,item){
	   		if($(this).val()==val1){
	   			$(this).attr('checked',true);
	   		}
	   	})
})
</script>
<div class="easyui-layout" data-options="fit:true,border:false" >
    <div data-options="region:'center',border:false" style="overflow-x:hidden;overflow-y: auto;padding: 3px;" >
    	<a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'fi-clock icon-blue'"  onclick="queryHistoryCommentFun('${sendDocument.processInstanceId}')">历史批注</a>
    	<a href="${ctxPath}/process/graphHistoryProcessInstance?processInstanceId=${sendDocument.processInstanceId}" class="easyui-linkbutton" data-options="iconCls:'fi-clock icon-blue'" target="_blank">流程追踪</a>
            <table class="grid" id="sendDocView">
 				<tr>
                      <td style="text-align:right">公文类型</td>
                      <td>
                        ${sendDocument.docType}
                     </td>
                     <td>发文字号</td>
                  	<td>
                  	    ${sendDocument.docNo}
                  	</td>
                  </tr>
                  <tr>
                   <td style="text-align:right">
                     	紧急程度
                     </td>
                     <td>
                     <input type="radio" name="emergencyLevel" value="普通" disabled/>普通
                     <input type="radio" name="emergencyLevel" value="紧急" disabled/>紧急
                     <input type="radio" name="emergencyLevel" value="特急" disabled/>特急
                     </td>
                   <td style="text-align:right">
                     	 密级
                     </td>
                     <td>
                     <input type="radio" name="denseGrade" value="绝密" disabled/>绝密
                     <input type="radio" name="denseGrade" value="机密" disabled/>机密
                     <input type="radio" name="denseGrade" value="秘密" disabled/>秘密
                     <input type="radio" name="denseGrade" value="普通" disabled/>普通
                     </td>
                  </tr>
                   <tr>
                     <td style="text-align:right">标题</td>
                      <td colspan="3">
                       ${sendDocument.title}
                     </td>
                  </tr>
                   <tr>
                     <td style="text-align:right">主题</td>
                      <td colspan="3">
                        ${sendDocument.topic}
                     </td>
                  </tr>
                  
                  <tr>
                     <td style="text-align:right">正文</td>
                      <td colspan="3">
                      	<input name='contentText' id="contentText_edit"  type="hidden"/>
                      	<div id="contentText_edit_disp"></div>
                      	<a onclick="attachUpload('contentText_edit','contentText_edit_disp')" href="javascript:void(0);" class="easyui-linkbutton" data-options="plain:true,iconCls:'fi-plus icon-green'">上传文件</a>      	
                     </td>
                     </tr>
                    <tr>
                       <td style="text-align:right">附件</td>
                     <td colspan="3">
                     <input name='attachId' id="attachId_edit"  type="hidden"/>
                      	<div id="attachId_edit_disp"></div>
                      	<a onclick="attachUpload('attachId_edit','attachId_edit_disp')" href="javascript:void(0);" class="easyui-linkbutton" data-options="plain:true,iconCls:'fi-plus icon-green'">上传文件</a>      	
                     </td>
                  </tr> 
                  <tr>
                  	<td>主办部门</td>
                  	<td>
                 		${sendDocument.mainBoardUnitName}
                  	</td>
                  	<td>份数</td>
                  	<td>
                  		${sendDocument.num}
                  	</td>
                  </tr>
                   <tr>
                     <td style="text-align:right">主送单位</td>
                      <td colspan="3">
                        ${sendDocument.mainUnit}
                     </td>
                  </tr>
                   <tr>
                     <td style="text-align:right">抄送单位</td>
                      <td colspan="3">
                     ${sendDocument.ccUnit}
                     </td>
                  </tr>
            </table>
    </div>
</div>